package MessagePacks;

import java.util.ArrayList;

import entities.NotificationMessage;

/**
 *@author Juan Alapin - 324507516
 *@author Giora Yaffe - 036551281
 *@author Shachar Gritzman - 300174026
 *@author Nir Porat - 021515580
*/

public class MessageNotificationPack extends MessagePack {

	private static final long serialVersionUID = 1L;
	private ArrayList<NotificationMessage> msgs;
	private int userID;
	
	/**
	 * Constructor
	 * @param op - specific code for messages
	 * @param msg - The message the system sends
	 * @param user - The user the message send to
	 */
	public MessageNotificationPack(ArrayList<NotificationMessage> msg,int user) {
		super(messageNotification);
		this.msgs = msg;
		this.setUserID(user);
	}
	
	public ArrayList<NotificationMessage> getMsgs() {
		return msgs;
	}
	
	public void setMsgs(ArrayList<NotificationMessage> msgs) {
		this.msgs = msgs;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	
	
}
